-- GENERATED SPELL FOR [Eye of Naxxramas] --


function spell0_10411(pUnit, Event) --@Greater Invisibility,Self--
pUnit:FullCastSpellOnTarget(16380,pUnit)
pUnit:RegisterEvent('Sorts_10411', 562, 1)
end

function Sorts_10411(pUnit, Event)
local choix_sorts_10411 = math.random(0, 0)
if choix_sorts_10411 == 0 then
pUnit:RegisterEvent('spell0_10411', 1, 1)
end
end

function mob10411_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10411', math.random(1500, 3000), 1)
end

function mob10411_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10411_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10411_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10411, 1, 'mob10411_Action')
RegisterUnitEvent(10411, 2, 'mob10411_Leave')
RegisterUnitEvent(10411, 3, 'mob10411_Kill')
RegisterUnitEvent(10411, 4, 'mob10411_Die')
